/**
 * Created by HUANGFR2 on 8/20/2016.
 */
const controller = require('../controller/complaint.server.controller');

function fn(app){
    app.route('/complaint')
        .get(controller.findAll)
        .put(controller.updateComplaintStatus);

    app.route("/complaint/listByM/:mid")
        .get(controller.findComplaintByMid);

    app.route("/complaint/listByC/:cid")
        .get(controller.findComplaintByCid);
}

module.exports = fn;